package com.ruoyi.customer.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.customer.domain.TRevieweCooperate;
import com.ruoyi.customer.domain.bo.TRevieweCooperateBo;
import com.ruoyi.customer.domain.vo.TRevieweCooperateVo;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 审件业绩合计单Service接口
 *
 * @author ruoyi
 * @date 2023-10-09
 */
public interface ITRevieweCooperateService {

    /**
     * 查询审件业绩合计单
     */
    TRevieweCooperateVo queryById(Long id);

    /**
     * 查询审件业绩合计单列表
     */
    TableDataInfo<TRevieweCooperateVo> queryPageList(TRevieweCooperateBo bo, PageQuery pageQuery);

    /**
     * 查询审件业绩合计单列表
     */
    List<TRevieweCooperateVo> queryList(TRevieweCooperateBo bo);

    /**
     * 新增审件业绩合计单
     */
    Boolean insertByBo(TRevieweCooperateBo bo);

    /**
     * 修改审件业绩合计单
     */
    Boolean updateByBo(TRevieweCooperateBo bo);

    /**
     * 校验并批量删除审件业绩合计单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);


    /**
     * 保存业绩信息
     */
    void saveByBoList(Long revieweId, String disType, Long userId, Long deptId, BigDecimal revenue, List<TRevieweCooperate> cooperateBoList);
}
